<div style="width: 100%">
    <el-row style="margin-top: 5px;margin-bottom: 5px;">
        <el-col :span="2">
            <el-button size="mini" type="primary" @click="update">加载仓库</el-button>
        </el-col>
        <el-col :span="2">
            <el-button size="mini" type="primary" @click="upload">gradle upload</el-button>
        </el-col>
        <el-col :span="5">
            <el-button size="mini" type="primary" @click="updateBom">更新版本(包括commit、push、更新gradle)</el-button>
        </el-col>
        <el-col :span="4">
            <el-input v-model="updateVersion.newVersion" name="newVersion"/>
        </el-col>
    </el-row>
    <el-row>
        <el-col :span="24">
            <el-table :data="data" style="width: 100%" border="true" stripe="true">
                <el-table-column label="所属仓库" align="center" prop="projectName"/>
                <el-table-column label="服务" align="center" prop="name"/>
                <el-table-column label="类型" align="center" prop="type"/>
                <el-table-column label="服务版本" align="center" prop="version.version"/>
                <el-table-column label="bom版本" align="center" prop="version.bomVersion"/>
                <el-table-column align="center" label="操作">
                    <template slot-scope="scope">
                        <el-button size="mini" type="primary" @click="updateBomOnly(scope.$index, scope.row)">更新版本</el-button>
                        <el-button size="mini" type="primary" @click="uploadOnly(scope.$index, scope.row)">upload</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </el-col>
    </el-row>
</div>